package com.zzx.schoolfellow.controller;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.zzx.schoolfellow.mapper.BmsFollowMapper;
import com.zzx.schoolfellow.mapper.UmsUserMapper;
import com.zzx.schoolfellow.model.entity.BmsFollow;
import com.zzx.schoolfellow.model.entity.UmsUser;
import com.zzx.schoolfellow.service.IBmsFollowService;
import com.zzx.schoolfellow.service.IUmsUserService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("/follow")
public class BmsFollowController extends BaseController {
    @Resource
    private IBmsFollowService iBmsFollowService;
    @Resource
    private UmsUserMapper umsUserMapper;

    @GetMapping("")
    public List<UmsUser> getFollowList(@RequestParam("id") String id) {
        return umsUserMapper.selectFollowers(id);
    }
}
